<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Fname')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-fname" class="form-control" name="row[fname]" type="text" value="{$row.fname|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Fpath_files')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-fpath_files" class="form-control" size="50" name="row[fpath_files]" type="text" value="{$row.fpath_files|htmlentities}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-fpath_files" class="btn btn-danger faupload" data-input-id="c-fpath_files" data-multiple="true" data-preview-id="p-fpath_files"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-fpath_files" class="btn btn-primary fachoose" data-input-id="c-fpath_files" data-multiple="true"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-fpath_files"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-fpath_files"></ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">文件分类:</label>
        <div class="col-xs-12 col-sm-8">
            <!-- <input id="c-category" name="row[category]" type="text" data-source="caiwut/selectpage" class="form-control selectpage" data-field="tname" value="1"> -->
            <input id="c-caiwut_id" data-rule="required" data-source="caiwut/selectpage" class="form-control selectpage" name="row[caiwut_id]" data-field="tname" type="text" value="{$row.caiwut_id}">
            <!-- <select id="c-caiwut_id" data-rule="required" class="form-control selectpicker" name="row[caiwut_id]" >
                {foreach name="PartList" item="vo"}
                    <option value="{$key}" {in name="key" value=""} selected{/in}>{$vo}</option>
                {/foreach}
            </select> -->
        </div>
    </div> 
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
